<tagLib name="fanwe" />
<include file="Public:header" />
<script type="text/javascript" src="__TMPL__Static/Js/dataList.js"></script>
<p>
    <a href="?a=withdraw&m=WoguTools&flag=0">未处理</a>
    <a href="?a=withdraw&m=WoguTools&flag=1">已通过</a>
    <a href="?a=withdraw&m=WoguTools&flag=2">已拒绝</a>
</p>

<table id="checkList" class="table-list list" cellpadding="0" cellspacing="0" border="0">
    <thead>
        <tr>
            <th>ID</th>
			<th>用户ID</th>
			<th>提现金额</th>
            <th>申请时间</th>
            <th>状态</th>
            <th width="80">{$Think.lang.HANDLE}</th>
        </tr>
    </thead>
    <?php $index = -1; ?>
    <tbody>
		<foreach name="list" item="item">
		<?php
			$index++;
			if($index % 2 == 0)
				$tr_class = ' class=""';
			else
				$tr_class = ' class="even"';
		?>
        <tr{$tr_class}>
            <td {$row_count}>{$item.id}</td>
            <td><a target="_blank" href="/u.php?action=index&uid={$item.uid}"><?php echo $users[$item['uid']]['user_name'];?></a></td>
            <td>{$item.rmb}</td>
            <td><?php echo date('Y-m-d H:i:s', $item['dateline']); ?></td>
            <td><?php $arr=array('未处理','已通过', '已拒绝'); echo $arr[$item['flag']]; ?></td>
			<td{$row_count}>
			    <?php if($item['flag'] == 0){ ?>
				<a href="?a=withdraw&m=WoguTools&op=check&id={$item.id}&flag=1">通过</a><br/>
				<a href="?a=withdraw&m=WoguTools&op=check&id={$item.id}&flag=2">拒绝</a><br/>
			    <?php } ?>
			</td>
        </tr>
		</foreach>
    </tbody>
</table>
<div class="pager">{$page}</div>
<include file="Public:footer" />